/*
 * @Description:Dog - 子类 - 派生类
 * 
 * @Author: rendc
 * 
 * @Date: 2025-03-07 09:25:26
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-03-07 09:28:47
 */
public class Dog extends Animal {
  // 成员变量省略

  @Override
  public void eat() {
    System.out.println("狗吃肉，吃狗粮");
  }

  @Override
  public void sleep() {
    System.out.println("狗趴着睡，睡狗窝");
  }

}